# print("hello world");
# import this;
# print(5+1)
# import math
# math.pi;
# print(math.pi)
# print(math.floor(math.pi/2));

# # 苹果的花费
# appleCell = 5;
# grape = 15;
# pay = appleCell * 2 + 1.5 * grape;
# # print("aaa"+1.3);
# print("总花费："+1.3.__str__());
#
# print("苹果的费：{}，葡萄的花费：{},总花费：{}".format(appleCell* 2,grape* 1.5,pay));
#
# print(1.3);
# import math
# result = math.pow(10,3);
# print(result);
# print(10**3);
# print(math.radians(180));
# print(min(1,3,9,2,3,2,3));
# listArr = print(divmod(10,3));
# print((listArr));
# print (True == 1);
# print(False == 0)
# print(1100>=1)
# print(1.4 is 1.0)
# a = 1
# b = 2
# print(a is b)
# print(True + 1)

# 字符串

line_1 = "你好"
line_2 = "hello world"
print(line_1 + line_2)
# 变量 相乘==》变量多个拼接（相同的）
# print(line_1 * 10)
# # 变量的长度
# print( len(line_1))
# print(id(line_1))
# line_1 = "你好"
# #变量的内存地址
# print(id(line_1))

#time
# import time
# print(2222)
# time.sleep(4)
# print("sss")

#字符串切片
line = "nihao hehe eee eess aaa"
print(line[0:10]) #第0个开始，取10个
print(line[-10:])#取后10个
print(line[::-1])#反转
print(line.split(" "))#以“ ”切分
print(line.capitalize())#首字母大写，其余变为小写
print(line.center(30,'@'))#以' '符号填补，是line居中

print("hello world")

def sum():
    sum = 0
    for n in range(1,101):
        sum = sum + n
        return sum
print(sum())


